package com.accounting.client.frontend;

import com.accounting.client.frontend.cost.CostManager;
import com.accounting.client.frontend.customer.CustomerManager;
import com.accounting.client.frontend.order.OrderManager;
import com.accounting.client.frontend.packages.PackageManager;
import com.accounting.client.frontend.product.ProductManager;
import com.accounting.client.frontend.product.ProductStockPage;
import com.accounting.client.frontend.product.PurchaseRecordManager;
import com.google.gwt.user.client.ui.Widget;

import corelib.client.ui.LazyWidget;
import corelib.client.ui.widget.tab.SimpleTabLayoutPanel;

public class WorkBench extends LazyWidget<Widget> {
	
	public WorkBench() {
		
	}

	@Override
	protected Widget createWidget() {
		SimpleTabLayoutPanel tabPanel = new SimpleTabLayoutPanel(34);
		tabPanel.addPage(new ProductStockPage(),false);
		tabPanel.addPage(new PurchaseRecordManager(),false);
		tabPanel.addPage(new OrderManager(),   false);
		tabPanel.addPage(new CustomerManager(),false);
		tabPanel.addPage(new PackageManager(), false);
		tabPanel.addPage(new ProductManager(), false);
		tabPanel.addPage(new CostManager(),    false);
		return tabPanel;
	}
	
}
